/// <reference path="../_all.ts" />

module Application.Filters {

    export class Translation {

        public static $inject = [
            'TranslationService',
        ];

        constructor(public Translations: Application.Interfaces.Services.ITranslationService) {
            var translations = Translations;
            return function (text) {
                if (translations) {
                    return translations.Translate(text);
                };
                return text;
            };
        }
    };
}